<%@page import="com.Service.BO.BusinessBO"%>
<%@page import="java.util.Iterator"%>
<%@page import="java.util.List"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
    <head>
        <title>Service Directory</title>
        <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
        <style media="all" type="text/css">
            @import "css/all.css";#main #middle #center-column form .table .listing tr .first.style1 a {
                color: #00F;
            }
            .TableHeading {
                font-weight: bold;
                font-variant: normal;
            }
        </style>
    </head>
    <body>
        <div id="main">

            <div id="header">
                <a href="index.html" class="logo"><img src="img/logo.png" width="954" height="112" alt="" /></a>


            </div>
            <div id="middle">
                <div id="left-column">
                    <h3>Home</h3>
                    <ul class="nav">
                        <li><a href="ListOrganController">Organization</a></li>
                        <li></li>
                        <li><a href="Services.jsp">Services</a></li>
                        <li><a href="Premises.jsp">Premises</a></li>
                        <li><a href="#">Forum</a>			    </li>
                        <li class="last"><a href="#">Fsoft Mail</a></li>
                    </ul>
                    <h3>Geograpphy</h3>
                    <ul class="nav">
                        <li><a href="TRegion.jsp">Trust region</a></li>

                        <li><a href="GovRegion.jsp">Government Region</a></li>
                    </ul>
                    <a href="#" class="link">Help</a>
                    <a href="index.jsp" class="link">Logout</a>
                </div>
                <div></div>
                <div id="center-column"><br />
                    <form action="createOrganization.html" method="get">
                        <div class="table">
                            <img src="img/bg-th-left.gif" width="8" height="7" alt="" class="left" />
                            <img src="img/bg-th-right.gif" width="7" height="7" alt="" class="right" />
                            <div class="table"> <img src="file:///Macintosh HD/Users/michaelomar/Downloads/free-admin-template/admin-template/img/bg-th-left.gif" width="8" height="7" alt="" class="left" /> <img src="file:///Macintosh HD/Users/michaelomar/Downloads/free-admin-template/admin-template/img/bg-th-right.gif" width="7" height="7" alt="" class="right" />
                                <table class="listing" cellpadding="0" cellspacing="0">
                                    <tr>
                                        <th colspan="4" class="first">SEARCH BUSINESS TYPE</th>
                                    </tr>
                                    <tr>
                                        <td colspan="4" class="first style1">Business name:
                                            <label for="postcode"></label>
                                            <input name="postcode" type="text" id="postcode" size="15" />
                                            SIC Code:
                                            <label for="street"></label>
                                            <input name="street" type="text" id="street" size="15" />
                                            <label for="town"></label></td>
                                    </tr>
                                    <tr class="bg">
                                        <td colspan="4" class="first style2"><input type="submit" name="search" id="search" value="search Address" />
                                            <input type="submit" name="none" id="none" value="None" />
                                            <input type="submit" name="clear" id="clear" value="Clear" /></td>
                                    </tr>
                                    </form>
                                    <form id="for" name="for" method="get" action="getBusinessController">
                                        <tr>
                                            <td width="53" class="first style3"><label for="postcode1"></label></td>
                                            <td width="136" class="TableHeading">Business Name</td>
                                            <td width="129" class="TableHeading">SIC Code</td>

                                        </tr>
                                        <%
                                            List hit = (List) request.getAttribute("ListBus");
                                            Iterator git = hit.iterator();
                                            while (git.hasNext()) {
                                                BusinessBO bus = (BusinessBO) git.next();
                                                String name = bus.getBizName();
                                                int code = bus.getSicCode();
                                                int bisID = bus.getBisID();
                                        %>
                                        <tr>
                                            <td class="first style2"><span class="first style3">
                                                    <input type="radio" name="radio" id="postcode1" value ="<%=bisID%>" >
                                                </input>
                                                    <td class="first style2">
                                                       <%=name%></td>
                                                       <td ><label ><%=code%></label></td><
                                            </span></td>
                                        </tr>
                                        <%
                                            }
                                        %>
                                </table>
                                <input type="submit" name="select" id="select" value="Select" />
                                </form>
                                    <form id="bform" name="bform" method="get" action="SpecialismController">
                                <input type="submit" name="close" id="close" value="Close" />
                                    </form>
                                <div class="select"> <strong>Other Pages: </strong>
                                    <select name="select">
                                        <option>1</option>
                                    </select>
                                </div>
                            </div>
                    </form>
                    <p>&nbsp;</p>
                </div>
            </div>
            <div id="right-column">
                <strong class="h">INFO</strong>
                <div class="box">This screen is to add a contact details for an organization </div>
            </div>
        </div>
        <div id="footer">
            <p>&nbsp;</p>
            <p>&nbsp;</p>
        </div>
    </body>
</html>
